package edu.hunau.cxb18.service.impl;

import edu.hunau.cxb18.dao.UserDao;
import edu.hunau.cxb18.dao.impl.UserDaoImpl;
import edu.hunau.cxb18.pojo.User;
import edu.hunau.cxb18.service.UserService;

import java.util.List;

/**
 * @author hb
 * @create 2020-02-20 11:45
 */
public class UserServiceImpl implements UserService {
    //需要dao的支持
    private UserDao userDao=new UserDaoImpl();

    @Override
    public List<User> showAll() {
        return userDao.queryAll();
    }
}
